import { useNavigate } from "react-router-dom"

export function About() {
    const navigate = useNavigate()

    return (
        <>
            <h1>关于</h1>
            <button onClick={() => navigate('/params/100', {replace: true})}>参数传递</button>
            <button onClick={() => navigate('/params?id=200', {replace: true})}>参数传递-search</button>
        </>
    )
}